package com.systop.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @Description: TODO
 * @Author: jsj
 * @Date: 2023/3/20
 */
@Setter
@Getter
public class NoStockException extends RuntimeException{
    private Long goodsId;
    private String msg;

    public NoStockException(Long goodsId){
        super("商品id:"+goodsId+"没有足够的库存");
    }
    public NoStockException(String msg){
        super(msg);
    }
}
